import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

public class Diagramm extends JFrame
{
    private JPanel diagrammbereich = new JPanel(null);
    private int alteAnzahl_b=0;
    private int alteAnzahl_s=0;
    private int zeit=0;
    public Diagramm(String title)
    {
        super(title);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        int frameWidth=800;
        int frameHeight=800;
        setSize(frameWidth, frameHeight);
        Container cp = getContentPane();
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x=0;
        int y=0;
        cp.setLayout(null);
        diagrammbereich.setBounds(0, 0, 800, 800);
        setLocation(x, y);
        cp.add(diagrammbereich);
        setResizable(true);
        setVisible(true);
        zeichneMuster();
    }

    public static void main(String[] args) 
    {
        new Diagramm("Diagramm");
    }

    protected void zeichneMuster()
    {
        Graphics g = diagrammbereich.getGraphics();
        g.setColor(Color.BLACK);
        g.drawLine(3,3,3,799);
        g.drawLine(3,3,799,3);
    }

}
